import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from 'cs/HelloWorld'

Vue.use(Router)
//懒加载
const HelloWorld = r => require.ensure([], () => r(require('cs/HelloWorld')), 'HelloWorld');

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      meta: {model: 'HelloWorld'},
    }
  ]
})
